
cc.Class({
    extends: cc.Component,

    properties: {

    },

    onLoad () {

    },

    btnClick(event,customData) {
		switch(customData){
			case 'close':
				this.node.active = false;
				break;
			case 'looktips':
				cc.director.emit('ongame','looktips');
				this.node.active = false;
				break;
			case 'restart':
				cc.director.emit('ongame','restart');
				this.node.active = false;
				break;
			case 'endcurrent':
				cc.director.emit('ongame','endcurrent');
				this.node.active = false;
				break;
			default:
				break;
		}
	},

    // update (dt) {},
});
